getVec2

abstract fun getVec2(block: DesignBlock, property: String): Vector2

Get the value of a vec2 property of the given design block. Experimental: this API may change in a minor release.

Return

the value of the property.

Parameters

block

the block whose property should be queried.

property

the name of the property to query, e.g. position.